package com.niuwa.p2p.service.promotion;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.core.mvc.entity.PageBean;
import com.niuwa.p2p.entity.gift.PromotionGiftinfo;
import com.niuwa.p2p.entity.promotion.Promotion;

public interface PromotionService {
	
	/**
	 * 获取活动分页列表
	 * @param paramMap
	 * @return
	 */
	PageBean<Promotion> searchPromotionPage(Map<String,Object> paramMap);
	
	/**
	 * 生成活动码
	 * @param promotionForcode
	 * @param promotionType
	 * @return
	 * 
     * 活动号生成规则
     * 举例：JF151013101
     * JF 两位标识活动归属   JF 积分商城 BG 邦购 YF有范
     * 151013 2015-10-13
     * 1 活动类型1积分 2 折扣 3积分+折扣
     * 01 活动流水
	 */
	String generatPromotionCode(String promotionForcode,Byte promotionType);
	
	int savePromotion(Promotion promotion);

}
